﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleBehaviorTreeLibrary
{
    internal class IsEnemyLessPowerful : Condition
    {
        public override RunResult Run(Blackboard blackboard)
        {
            Console.WriteLine("Is enemy more powerful? Checking...");

            if (blackboard.EnemyIsLessPowerful)
            {
                Console.WriteLine("Enemy is less powerful.");

                return RunResult.Success;
            }

            Console.WriteLine("Enemy is more powerful.");

            return RunResult.Failure;
        }
    }
}
